/*
 * MMA8451.h
 *
 *  Created on: Mar 8, 2014
 *      Author: Misael Munoz
 */

#ifndef MMA8451_H_
#define MMA8451_H_

#define MMA84x__nStartWriteAddr     (0x23)
#define MMA84x__nReadDataSize       12


#define STATUS_F_STATUS          0x00
#define OUT_X_MSB                0x01
#define OUT_X_LSB                0x02
#define OUT_Y_MSB                0x03
#define OUT_Y_LSB                0x04
#define OUT_Z_MSB                0x05
#define OUT_Z_LSB                0x06
#define F_SETUP                  0x09
#define TRIG_CFG                 0x0A
#define SYSMOD                   0x0B
#define INT_SOURCE               0x0C
#define WHO_AM_I                 0x0D
#define XYZ_DATA_CFG             0x0E
#define HP_FILTER_CUTOFF         0x0F
#define PL_STATUS                0x10
#define PL_CFG                   0x11
#define PL_COUNT                 0x12
#define PL_BF_ZCOMP              0x13

#define PULSE_CFG                0x21
#define PULSE_SRC                0x22
#define PULSE_THSX               0x23
#define PULSE_THSY               0x24
#define PULSE_THSZ               0x25
#define PULSE_TMLT               0x26
#define PULSE_LTCY               0x27
#define PULSE_WIND               0x28

#define CTRL_REG1                0x2A
#define CTRL_REG2                0x2B
#define CTRL_REG3                0x2C



void MMA84x_HWInit(void);
void MMA84x__vFinishjobHandler(uint8 job);

#endif /* MMA8451_H_ */
